package main.rsevents;

public class RSEventContainer {
	
	public int type;
	public String message;
	
	public RSEventContainer(int type, String message) {
		this.type = type;
		switch (type) {
		case 0: //Server Message
			this.message = message;
			break;
			default:
				System.out.println("Unhandled event! Type: " + type);
				
		}
		
	}
	public RSEventContainer(String string, String s) {
		this.message = s;
	}
	public String getMessage() {
		return message;
	}
	
	public String getType() {
		switch (type) {
		case 0:
			return "ServerMessage";
			default:
				return "Unhandled!";
		}
	}

}
